package com.tanhua.sso.config;

/*
    配置阿里云短信接口连接相关参数
 */

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;

@Data
@Configuration                                  //添加bean
@PropertySource("classpath:aliyun.properties")   //配置扫描的配置包
@ConfigurationProperties(prefix = "aliyun.sms")  //配置配置文件的前缀
public class AliyunSMSConfig {

    private String regionId;
    private String accessKeyId;
    private String accessKeySecret;
    private String domain;            //阿里云短信地址
    private String signName;         //签名ID
    private String templateCode;    //模板ID
}
